<template>
  <div>
    <template v-if="value.type == 'textarea'">
      <el-input type="textarea" :rows="value.rows" :size="value.size" v-model="data" :disabled="value.disabled" :resize="value.resize" :placeholder="value.placeholder"></el-input>
    </template>
    <template v-if="value.type != 'textarea'">
      <el-input :type="value.type" v-model="data" :disabled="value.disabled" :prefix-icon="value.icon" :clearable="value.clearable" :placeholder="value.placeholder" :size="value.size" :autosize="value.autosize"></el-input>
    </template>
  </div>
</template>
<script type="text/javascript">
// import empty from './empty.vue'
export default {
  components: {
    //empty
  },
  props: {
    value: [Array, Object]
  },
  data() {
    return {
      data: "",
    }
  },
  /**
   * 计算属性
   * @type {Object}
   */
  computed: {

  },
  /**
   * 数据监听
   * @type {Object}
   */
  watch: {

  },
  /**
   * 页面加载执行
   * @return {[type]} [description]
   */
  mounted() {

  },
  /**
   * 页面方法
   * @type {Object}
   */
  methods: {

  }
}

</script>
<style type="text/css" lang="scss">
</style>
